package com.ufinity.estimation.utils;

import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.context.annotation.ScopeMetadata;
import org.springframework.context.annotation.ScopeMetadataResolver;

import com.cn.ufinity.common.log.Logger;
import com.cn.ufinity.common.log.LoggerFactory;


public class MyScopeResolver implements ScopeMetadataResolver{
	private Logger logger = LoggerFactory
	.getSystemLog(MyScopeResolver.class);
	
	public ScopeMetadata resolveScopeMetadata(BeanDefinition definition) {
		ScopeMetadata scopeMetadata = new ScopeMetadata();
		logger.debug("resolveScopeMetadata", BeanDefinition.SCOPE_PROTOTYPE + "=" + definition.getBeanClassName());
		scopeMetadata.setScopeName(BeanDefinition.SCOPE_PROTOTYPE);
		return scopeMetadata;
	}

}
